CC=gcc
FLAGS=-Wall -Wextra -Wconversion -Werror -pedantic -pedantic-errors
DEBUG_FLAGS=-O0 -g3 -pg
DEBUG_OUTPUT_FILE=q_test 

debug-test: q_test.o queue.o
	$(CC) -o bin/$(DEBUG_OUTPUT_FILE) $(FLAGS) $(DEBUG_FLAGS) bin/q_test.o bin/queue.o
q_test.o: q_test.c
	$(CC) -c -o bin/q_test.o $(FLAGS) $(DEBUG_FLAGS) q_test.c
queue.o: queue.c queue.h
	$(CC) -c -o bin/queue.o $(FLAGS) $(DEBUG_FLAGS) queue.c
.PHONY clean:
	rm -f bin/*.o bin/$(DEBUG_OUTPUT_FILE) gmon.out
